package baseinfo;

public class info {

    public static void main(String[] args){
       Student S1= new Student();
        Student S2= new Student();
       S1.Name="张三";
       S1.number=110;
       S1.Sex="男";
       S1.Tall=1.85;

        S2.Name="李四";
        S2.number=120;
        S2.Sex="女";
        S2.Tall=1.65;

       S1.OutName();
       S1.OutNumber();
       S1.OutSex();
       S1.OutTall();


        S2.OutName();
        S2.OutNumber();
        S2.OutSex();
        S2.OutTall();


        
    }
}

class Student{
    int number;
    String Name;
    String Sex;
    double Tall;
    public void OutNumber(){
        System.out.println(number);
    }
    public void OutName(){
        System.out.println(Name);
    }

    public void OutSex(){
        System.out.println(Sex);
    }
    public void OutTall(){
        System.out.println(Tall);
    }
}

